//
//  KView.m
//  share
//
//  Created by 李少葵 on 27/1/16.
//  Copyright © 2016年 myClassroom. All rights reserved.
//

#import "KView.h"



@implementation KView

+(UIView *)viewWithGreen{
    UIView *view = [[UIView alloc] initWithFrame:[UIScreen mainScreen].bounds];
    view.backgroundColor = [UIColor greenColor];
    return view;
}
-(UIView *)viewWithView{
    UIView *view = [[UIView alloc] initWithFrame:[UIScreen mainScreen].bounds];
    view.backgroundColor = [UIColor greenColor];
    return view;
}

+(UIColor *)randomColor{
    
    CGFloat red = arc4random_uniform(256)/256.0;
    CGFloat green = arc4random_uniform(256)/256.0;
    CGFloat blue = arc4random_uniform(256)/256.0;
    
    return [UIColor colorWithRed:red green:green blue:blue alpha:1.0];
}

@end
